package com.lmt.org.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Amazing
 * @Date: 2022/6/21 12:49
 * @Version: 1.0
 */
@Data
public class Department {
     private Long id;
     private String sn;
     private String name;
     private String dirPath;
     private Integer state;
     private Long manager_id;
     private Long parent_id;
     private Employee manager;
     private Department parent;
     /**
     * @Title:
     * @Description: 子部门树字段
     * @Author: Amazing
     * @Version: 1.0
     * @Date:  2022/6/26 10:13
     * @Parameters:
     * @Return
     */
     @JsonInclude(JsonInclude.Include.NON_EMPTY)
     private List<Department> children = new ArrayList<>();

}
